﻿using ReportSystem_XY.DAL;
using ReportSystem_XY.Models;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static ReportSystem_XY.WinCCArchive.Common;

namespace ReportSystem_XY.BLL
{
    public class ReportDataBLL:BaseBLL<ReportDataBLL>
    {
        ReportDataDAL reportDataDAL = new ReportDataDAL();
        public DataTable GetStepInfo(ReportNameModel model)
        {         
            return reportDataDAL.GetStepInfo(model);
        }
        public StepTimeInfoModel GetStepTimeInfo(DataTable dt)
        {
          return  reportDataDAL.GetStepTimeInfo(dt);
        }
        public DataTable GetArchiveData(string strIndex, string strColNames, string tfrom, string tto, string timeSpace = "3600", DtySimple simple = DtySimple.First)
        {         
            return reportDataDAL.GetArchiveData(strIndex, strColNames, tfrom, tto, timeSpace, simple);
        }

        public DataTable GetCTArchiveData(string strIndex, string strColNames, string tfrom, string tto, out bool result, string timeSpace = "3600", DtySimple simple = DtySimple.First)
        {
            return reportDataDAL.GetCTArchiveData(strIndex, strColNames, tfrom, tto, out  result, timeSpace, simple);
        }
        public DataTable GetStepAccuracy(DataTable dt, ReportNameModel model)
        {          
            return reportDataDAL.GetStepAccuracy(dt, model);
        }

        
    }
}
